<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/icon.css" />

<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.9.1.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
	$(function() {
		//登陆时提示管理员或者教师的申请信息
		//setTimeout("$.messager.alert('消息提示','${sessionScope.msg}${sessionScope.count}${sessionScope.msg1}！','info');",200);
		 var rid = ${sessionScope.User.rid};
		 //判断是否是学生
		 if(rid!=3){
			 setTimeout(
					  	$.messager.show({
		    			title:'信息提示',
		    			msg:'${sessionScope.msg}${sessionScope.count}${sessionScope.msg1}！',
		    			timeout:8000,
		    			height:150,
		    			showType:'slide'
		    		}),200);
		 }
		//树形菜单的展示
		$('#tt').tree({
			url : 'showFunction',
			onLoadSuccess : function(node, data) {
				$('#tt').tree('expandAll');

			},
			onClick : function(node) {
				if (node.attributes.furl) {
					if ($('#tcontent').tabs('exists', node.text)) {
						$('#tcontent').tabs('select', node.text)
					} else {
						$('#tcontent').tabs('add', {
							title : node.text,
							content : "<iframe  frameborder='no' width='100%' height='100%' src="+ node.attributes.furl +" ></iframe>",
							closable : true
						});
					}
				}

			}

		});

	})
</script>
<body class="easyui-layout">
	<div data-options="region:'north'" style="height: 100px;" >
	</div>
	<div data-options="region:'west',title:'${sessionScope.User.uname}欢迎你',collapsible:false" style="width: 250px;">
		<!-- 功能展示 -->
		<ul id="tt"></ul>
	</div>
																<!-- 通知管理员有多少条申请需要处理  -->
	<div data-options="region:'center'," style="padding: 5px; background:#FFFFFF" >
		<a href="login.jsp">退出</a>
		<div id="tcontent" class="easyui-tabs" data-options="fit:true"  >		
		</div>
	</div>

</body>
</html>